package org.fight.spring.boot;

import javax.annotation.Resource;

import org.fight.spring.boot.user.service.IUserService;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@EnableAutoConfiguration
public class UserController {
	@Resource
	private IUserService userService;

	@RequestMapping("/")
	public String index() {
		userService.queryUser();
		return "hello word";
	}
}
